package com.hzhk.happyrent.bean.rent;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * User: hzhk(1097282555@qq.com)
 * Date: 2017/11/26
 * Time: 16:02
 * progject: hzk
 * Describe： ${Describe}
 */
public class ProductInfoModel extends BaseModel {


    /**
     * data : {"goods":{"id":"65","mch_id":"1","store_id":"1","goods_code":"SD151169822471-1","goods_name":"iphone X","goods_sub_title":"十二期免息，qingshaonian","sort_id":"97","brand_id":"12","type_id":"0","supplier_id":null,"goods_cover_image":"http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142728985293.png","goods_extend_image":["5770","5771","5772"],"is_focus":"0","goods_introduction":"","goods_total_stock":"0","total_stock_display":"1","goods_sell_price":"5000.00","goods_bid_price":"0.00","goods_cost_price":"6000.00","cost_price_display":"1","is_new_product":"0","is_essence_product":"0","is_hot_product":"1","is_distribute":"0","is_discount_product":"0","deduct_price":"0","self_support":"0","goods_status":"0","purchase_limits":"0","area_limit":"","freight_setting":"1","uniform_postage":"0","parcel_num":"1","parcel_freight":"0","percentage":"0","goods_content":"<p>疯X，你最好的选择。<br/><\/p>","index_sort":{"hot":true,"new":false},"sales_volume":"0","visit":"0","freight_template_id":null,"spec_array":[{"id":"19","name":"租期","type":"1","value":["1个月","2个月","3个月"]},{"id":"20","name":"128G","type":"1","value":["128G"]}],"order_by":"3","create_date":"1511430750","preview_goods_extend_image":["http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142746681377.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142747744094.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142748628828.jpg"]},"goods_sku":[{"id":"263","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[1个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"1个月","tip":"租期1个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"6000.00","bid_price":"0.00","deduct_price":"0","price":"5000.00","stock":"100","code":"SD151169822471-1","explain":null,"status":"1"},{"id":"264","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[2个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"2个月","tip":"租期2个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"5000.00","bid_price":"0.00","deduct_price":"0","price":"4000.00","stock":"100","code":"SD151169822471-2","explain":null,"status":"1"},{"id":"265","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[3个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"3个月","tip":"租期3个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"4000.00","bid_price":"0.00","deduct_price":"0","price":"3000.00","stock":"100","code":"SD151169822471-3","explain":null,"status":"1"}],"goods_added_service":[{"id":"13","mch_id":"1","name":"意外保障","price":"120.00","order_by":"0","status":"1","create_time":"1511580973","is_need":"1"},{"id":"14","mch_id":"1","name":"维修三年保障","price":"200.00","order_by":"0","status":"1","create_time":"1511581003","is_need":"0"}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * goods : {"id":"65","mch_id":"1","store_id":"1","goods_code":"SD151169822471-1","goods_name":"iphone X","goods_sub_title":"十二期免息，qingshaonian","sort_id":"97","brand_id":"12","type_id":"0","supplier_id":null,"goods_cover_image":"http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142728985293.png","goods_extend_image":["5770","5771","5772"],"is_focus":"0","goods_introduction":"","goods_total_stock":"0","total_stock_display":"1","goods_sell_price":"5000.00","goods_bid_price":"0.00","goods_cost_price":"6000.00","cost_price_display":"1","is_new_product":"0","is_essence_product":"0","is_hot_product":"1","is_distribute":"0","is_discount_product":"0","deduct_price":"0","self_support":"0","goods_status":"0","purchase_limits":"0","area_limit":"","freight_setting":"1","uniform_postage":"0","parcel_num":"1","parcel_freight":"0","percentage":"0","goods_content":"<p>疯X，你最好的选择。<br/><\/p>","index_sort":{"hot":true,"new":false},"sales_volume":"0","visit":"0","freight_template_id":null,"spec_array":[{"id":"19","name":"租期","type":"1","value":["1个月","2个月","3个月"]},{"id":"20","name":"128G","type":"1","value":["128G"]}],"order_by":"3","create_date":"1511430750","preview_goods_extend_image":["http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142746681377.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142747744094.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142748628828.jpg"]}
         * goods_sku : [{"id":"263","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[1个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"1个月","tip":"租期1个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"6000.00","bid_price":"0.00","deduct_price":"0","price":"5000.00","stock":"100","code":"SD151169822471-1","explain":null,"status":"1"},{"id":"264","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[2个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"2个月","tip":"租期2个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"5000.00","bid_price":"0.00","deduct_price":"0","price":"4000.00","stock":"100","code":"SD151169822471-2","explain":null,"status":"1"},{"id":"265","store_id":"1","goods_id":"65","attr_key":null,"attr_key_path":"[3个月][128G]","spec_array":[{"id":"19","type":"1","name":"租期","value":"3个月","tip":"租期3个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}],"cost_price":"4000.00","bid_price":"0.00","deduct_price":"0","price":"3000.00","stock":"100","code":"SD151169822471-3","explain":null,"status":"1"}]
         * goods_added_service : [{"id":"13","mch_id":"1","name":"意外保障","price":"120.00","order_by":"0","status":"1","create_time":"1511580973","is_need":"1"},{"id":"14","mch_id":"1","name":"维修三年保障","price":"200.00","order_by":"0","status":"1","create_time":"1511581003","is_need":"0"}]
         */

        private GoodsBean goods;
        private List<GoodsSkuBean> goods_sku;
        private List<GoodsAddedServiceBean> goods_added_service;

        public GoodsBean getGoods() {
            return goods;
        }

        public void setGoods(GoodsBean goods) {
            this.goods = goods;
        }

        public List<GoodsSkuBean> getGoods_sku() {
            return goods_sku;
        }

        public void setGoods_sku(List<GoodsSkuBean> goods_sku) {
            this.goods_sku = goods_sku;
        }

        public List<GoodsAddedServiceBean> getGoods_added_service() {
            return goods_added_service;
        }

        public void setGoods_added_service(List<GoodsAddedServiceBean> goods_added_service) {
            this.goods_added_service = goods_added_service;
        }

        public static class GoodsBean {
            /**
             * id : 65
             * mch_id : 1
             * store_id : 1
             * goods_code : SD151169822471-1
             * goods_name : iphone X
             * goods_sub_title : 十二期免息，qingshaonian
             * sort_id : 97
             * brand_id : 12
             * type_id : 0
             * supplier_id : null
             * goods_cover_image : http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142728985293.png
             * goods_extend_image : ["5770","5771","5772"]
             * is_focus : 0
             * goods_introduction :
             * goods_total_stock : 0
             * total_stock_display : 1
             * goods_sell_price : 5000.00
             * goods_bid_price : 0.00
             * goods_cost_price : 6000.00
             * cost_price_display : 1
             * is_new_product : 0
             * is_essence_product : 0
             * is_hot_product : 1
             * is_distribute : 0
             * is_discount_product : 0
             * deduct_price : 0
             * self_support : 0
             * goods_status : 0
             * purchase_limits : 0
             * area_limit :
             * freight_setting : 1
             * uniform_postage : 0
             * parcel_num : 1
             * parcel_freight : 0
             * percentage : 0
             * goods_content : <p>疯X，你最好的选择。<br/></p>
             * index_sort : {"hot":true,"new":false}
             * sales_volume : 0
             * visit : 0
             * freight_template_id : null
             * spec_array : [{"id":"19","name":"租期","type":"1","value":["1个月","2个月","3个月"]},{"id":"20","name":"128G","type":"1","value":["128G"]}]
             * order_by : 3
             * create_date : 1511430750
             * preview_goods_extend_image : ["http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142746681377.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142747744094.jpg","http://oneman.oss-cn-shenzhen.aliyuncs.com/upload/20171123/151142748628828.jpg"]
             */

            private String id;
            private String goods_name;
            private String goods_sub_title;
            private String goods_sell_price;
            private String goods_cost_price;
            private String goods_content;
            private String goods_paramers;
            private String goods_image;
            private List<SpecArrayBean> spec_array;
            private List<String> preview_goods_extend_image;

            public String getGoods_image() {
                return goods_image;
            }

            public void setGoods_image(String goods_image) {
                this.goods_image = goods_image;
            }

            public String getGoods_paramers() {
                return goods_paramers;
            }

            public void setGoods_paramers(String goods_paramers) {
                this.goods_paramers = goods_paramers;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }



            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_sub_title() {
                return goods_sub_title;
            }

            public void setGoods_sub_title(String goods_sub_title) {
                this.goods_sub_title = goods_sub_title;
            }


            public String getGoods_sell_price() {
                return goods_sell_price;
            }

            public void setGoods_sell_price(String goods_sell_price) {
                this.goods_sell_price = goods_sell_price;
            }


            public String getGoods_cost_price() {
                return goods_cost_price;
            }

            public void setGoods_cost_price(String goods_cost_price) {
                this.goods_cost_price = goods_cost_price;
            }



            public String getGoods_content() {
                return goods_content;
            }

            public void setGoods_content(String goods_content) {
                this.goods_content = goods_content;
            }


            public List<SpecArrayBean> getSpec_array() {
                return spec_array;
            }

            public void setSpec_array(List<SpecArrayBean> spec_array) {
                this.spec_array = spec_array;
            }

            public List<String> getPreview_goods_extend_image() {
                return preview_goods_extend_image;
            }

            public void setPreview_goods_extend_image(List<String> preview_goods_extend_image) {
                this.preview_goods_extend_image = preview_goods_extend_image;
            }



            public static class SpecArrayBean {
                /**
                 * id : 19
                 * name : 租期
                 * type : 1
                 * value : ["1个月","2个月","3个月"]
                 */

                private String id;
                private String name;
                private String type;
                private String select;

                public String getSelect() {
                    return select;
                }

                public void setSelect(String select) {
                    this.select = select;
                }

                private List<String> value;
                private List<String> states=new ArrayList<>();

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public List<String> getValue() {
                    return value;
                }

                public void setValue(List<String> value) {
                    this.value = value;
                }
            }
        }

        public static class GoodsSkuBean {
            /**
             * id : 263
             * store_id : 1
             * goods_id : 65
             * attr_key : null
             * attr_key_path : [1个月][128G]
             * spec_array : [{"id":"19","type":"1","name":"租期","value":"1个月","tip":"租期1个月"},{"id":"20","type":"1","name":"128G","value":"128G","tip":"内存"}]
             * cost_price : 6000.00
             * bid_price : 0.00
             * deduct_price : 0
             * price : 5000.00
             * stock : 100
             * code : SD151169822471-1
             * explain : null
             * status : 1
             */

            private String id;
            private String attr_key_path;
            private String cost_price;
            private String price;
            private String stock;
            private String code;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }


            public String getAttr_key_path() {
                return attr_key_path;
            }

            public void setAttr_key_path(String attr_key_path) {
                this.attr_key_path = attr_key_path;
            }

            public String getCost_price() {
                return cost_price;
            }

            public void setCost_price(String cost_price) {
                this.cost_price = cost_price;
            }


            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getStock() {
                return stock;
            }

            public void setStock(String stock) {
                this.stock = stock;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }


            public static class SpecArrayBeanX {
                /**
                 * id : 19
                 * type : 1
                 * name : 租期
                 * value : 1个月
                 * tip : 租期1个月
                 */

                private String id;
                private String type;
                private String name;
                private String value;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }

            }
        }

        public static class GoodsAddedServiceBean {
            /**
             * id : 13
             * mch_id : 1
             * name : 意外保障
             * price : 120.00
             * order_by : 0
             * status : 1
             * create_time : 1511580973
             * is_need : 1
             */

            private String id;
            private String name;
            private String price;
            private String is_need;

            public boolean isChoose() {
                return choose;
            }

            public void setChoose(boolean choose) {
                this.choose = choose;
            }

            private boolean choose=false;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }


            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getIs_need() {
                return is_need;
            }

            public void setIs_need(String is_need) {
                this.is_need = is_need;
            }
        }
    }
}
